package ooday02;
/**继承的演示*/
public class ExtendsTest {
    public static void main(String[] args) {
        //学生
        Student zs = new Student("张三",25,"廊坊","jsd2302","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();
        //老师
        Teacher ls = new Teacher("李四",26,"北京",3000);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();
        //医生
        Doctor ww = new Doctor("王五",27,"天津","院长");
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();
    }
}
